﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>我的人次票</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
    <link href="https://cdn.bootcss.com/amazeui/2.7.2/css/amazeui.css" rel="stylesheet">
    <link href="css/common.css" rel="stylesheet" />
    <style>
        .veads1_i1 {
            display: block;
            float: left;
            margin-top: 2%;
            width: 2.5%;
        }
        .veads1_s1 {
            display: block;
            text-align: center;
            font-size: 1.8rem;
        }
        body{
            background: #f6f6f6;
        }
        .main{
            padding: 5% 3%;
        }
        .main_d1{
            border:1px solid #6fddb1;
            border-radius: 5px;
            overflow: hidden;
            position: relative;
        }
        .main_pans1{
            font-size: 1.7rem;
            display: block;
            width: 60%;
            float: left;
            margin-bottom: 3%;
        }
        .main_pans2{
            font-size: 1.4rem;
            display: block;
            width: 60%;
            float: left;
            margin-bottom: 5%;
        }
        .main_pand1{
            overflow: hidden;
            width: 60%;
        }
        .main_panimg1{
            width: 5%;
            display: block;
            float: left;
            margin-top: 1.5%;
            margin-right: 2%;
        }
        .main_pans3{
            display: block;
            float: left;
            font-size: 1.2rem;
            color: #cccccc;
        }
        .main_pans4{
            float: right;
            position: absolute;
            top: 0;
            right: 22%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            color: #cccccc;
            font-size: 1.4rem;
        }
        .main_pand2{
            height: 100%;
            position: absolute;
            right: 4%;
            top: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 15%;
            background: #6fddb1;
            color: #fff;
            border: 1px solid #6fddb1;
        }
        .main_pans5{
            display: block;
        }
    </style>
</head>
<body>
    <div class="page" id="page" v-cloak>
        <header data-am-widget="header" class="am-header am-header-default" style="background-color: #FFFFFF; border-bottom: 1px solid rgb(211, 211, 211);">
            <div class="am-header-left am-header-nav" onclick="goBack()">
                <a href="javascript:" class="">
                    <img class="am-header-icon-custom" src="images/veas07.png" alt="" />
                </a>
            </div>
            <h4 class="am-header-title" style=" color: black;">我的人次票</h4>
            <div class="am-header-right am-header-nav"><a href="/Wap/Index.html" class="am-header-icon am-icon-home" style="color: #A9A9A9; "></a></div>
        </header>
        <div class="main">
            <div class="am-panel main_d1" v-for="list in orderList">
                <div class="am-panel-bd">
                    <span class="main_pans1">{{list.ticket.ti.Name}}</span>
                    <span class="main_pans2">{{list.ticket.venue.Name}}</span>
                    <div class="main_pand1">
                        <img class="main_panimg1" src="images/personticket01.png" alt="">
                        <span class="main_pans3">{{list.ticket.venue.Adress}}</span>
                    </div>
                    <span class="main_pans4">2018.03.23</span>
                    <div class="main_pand2">
                        <span class="main_pans5">剩余</span>
                        <span class="main_pans5">{{list.o.Num}}张</span>
                    </div>
                </div>
            </div>

        </div>
    </div>
</body>
<script src="https://use.fontawesome.com/ca6b609d64.js"></script>
<script src="https://cdn.bootcss.com/jquery/1.8.3/jquery.js"></script>
<script src="js/common.js"></script>
<script src="https://cdn.bootcss.com/vue/2.5.9/vue.js"></script>
<script src="https://cdn.bootcss.com/amazeui/2.7.2/js/amazeui.js"></script>
</html>

<script>
    var page = new Vue({
        el: '#page',
        data: {
            orderList: [],
        },
        methods: {
            getUserInfo: function () {
                var that = this;
                $.ajax({
                    type: 'POST',
                    url: apiUrl + '/Api/Mine/GetMyTicket',
                    success: function (data) {
                        console.log(data.data.myticketlist);
                        if (data.errcode == 0) {
                            that.orderList = data.data.myticketlist;
                            //console.log(that.userinfo)
                        } else {
                            alert(data.errmsg);
                        }
                    },
                    //error: function () {
                    //    alert("服务器加载异常");
                    //}
                })
            },
            seeInfo: function (Id) {
                location.href = "TicketOrderInfo.html?TicketgId=" + Id;
            }
        }
    });
    $(function () {
        page.getUserInfo();
    })
</script>
